package com.acme.concurrent;

import com.acme.concurrent.factorization.Factorizer;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author Gregory Sobko
 */
public class Foo {

    ExecutorService executor = Executors.newFixedThreadPool(8);

    private int countMoreThanOneDivisor = 0;

    private int countOPs = 0;

    public void op(){
        for(int i = 100; i < 100000; i++){
            if(Factorizer.factorize(i).size() > 1){
                countMoreThanOneDivisor++;
            }
            countOPs++;
        }
    }

    public int getCount(){
        return countOPs;
    }

}
